package com.amado.course0603break;

public class WhileTest07 {
	public static void main(String[] args) {
		int i = 3, sum = 1;
		while (i > 0) {
			for (int m = 0; m < 2; m = m + 1) {
				switch (m) {
				case 0:
					sum = sum + 1;
					break;
				case 1:
					sum *= 2;
					break;
				default:
					break;
				}
			}
			i--;
		}
		System.out.println(sum);
	}
}
